interface Config {
  procDefKey: string;
  jumpFunc: Function;
}
export let jumpConfig = new Map();
export const workflowJumpConfigRegister = (configList: Array<Config>) => {
  configList.forEach((v) => {
    const isExist = !!v.procDefKey;
    if (isExist) {
      jumpConfig = jumpConfig.set(v.procDefKey, v.jumpFunc);
    } else {
      console.error(`[ElError]: 流程定义key不能为空`);
    }
  });
};
